package com.espoir.mapper;

import com.espoir.pojo.Shp;
import com.espoir.shp.read01.CommonShapeModel;
import com.espoir.shp.read01.CountyShapeModel;
import com.espoir.shp.read01.ShapeModel;
import com.espoir.shp.read01.TownshipShapeModel;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface IShpMapper {

    List<Shp> findAll();

    int save(Shp shp);
    int save2(Shp shp);
    int save3(ShapeModel shapeModel);

    Shp findById(int id);
    Shp findById2(int id);

    List<ShapeModel> findByCoordinate(String coordinate);

    int saveCountyShape(CountyShapeModel shapeModel);

    int saveTownshipShape(TownshipShapeModel shapeModel);

    int saveCommonShape(CommonShapeModel shapeModel);
}
